package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * URL路径映射
 */
@Controller
public class HelloController {

    @RequestMapping({"hello1","hello2","hello3"})
    @ResponseBody
    public BaseRespVo hello() {
        return BaseRespVo.ok("hello");
    }

    @RequestMapping("goodbye*")
    @ResponseBody
    public BaseRespVo goodbye1() {
        return BaseRespVo.ok("goodbye1");
    }
    @RequestMapping("goodbye/*")
    @ResponseBody
    public BaseRespVo goodbye2() {
        return BaseRespVo.ok("goodbye2");
    }
}
